/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package esnipe2;

/**
 *
 * @author hangsu
 */
public class Pricepair {
    /**
     * wrapper for price pair
     * @param cur currentPrice == nextPrice
     * @param isSuccess 
     */
    public Pricepair(double cur, boolean isSuccess) {
        this.currentPrice = cur;
        this.nextPrice = cur;
        this.valid = isSuccess;
    }

    public Pricepair(double cur, double nxt, boolean isSuccess) {
        this.currentPrice = cur;
        this.nextPrice = nxt;
        this.valid = isSuccess;
    }
    
    @Override
    public String toString() {
        return Double.toString(this.currentPrice)+"/"
        +Double.toString(this.nextPrice);
    }

    public double currentPrice;

    public double nextPrice; /*the price in (Enter US $XX.XX or more)*/
    
    public boolean valid;
}
